<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <!-- Mirrored from www.24k.com.sg/workz/nbo/download.html by HTTrack Website Copier/3.x [XR&CO'2010], Fri, 15 Mar 2013 15:09:48 GMT -->
 <!-- Added by HTTrack -->
 <head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  <title>${template.title}</title> 
   <#assign ctx="${springMacroRequestContext.contextPath}">
  <link rel="stylesheet" href="/resources/front/template/nbo/css/popup.css" type="text/css" media="screen" /> 
  <style>body {background:#fff;}</style> 
  <script type="text/javascript" src="/resources/front/template/nbo/js/jquery-1.7.2.min.js"></script> 
  <meta name="description" content="${template.metaDescription}" />
  <meta name="title" content="${template.metaTitle}" />
  <meta name="keywords" content="${template.metaKeywords}" />
 </head> 
 <body> 
  <div class="form" > 
   <p>Please fill in the following form to download our resources.<br /><br /></p> 
   <form id="confirm">
   <table>
    <tbody> 
     <tr> 
      <th>Name:</th> 
      <td><input type="text" name="name" /></td> 
     </tr> 
     <tr> 
      <th>Contact No.:</th> 
      <td><input type="text" name="contact" /></td> 
     </tr> 
     <tr> 
      <th>Email:</th> 
      <td><input type="text" name="email" /></td> 
     </tr> 
     <tr> 
      <th></th> 
      <td><input type="button" name="" value="Submit" class="btn" /></td> 
     </tr> 
    </tbody>
   </table> 
   </form>
  </div> 
 
  <script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> 
  <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-12910567-3"); pageTracker._trackPageview(); } catch(err) { }</script> 
    <script type="text/javascript">
  $(document).ready(function(){
     $('.btn').click(function(){
     		$.ajax({
			url : "${ctx}/nbodownload/submit/",
			type : "POST",
			data :  $('#confirm').serialize(),
			dataType : "json",
			success : function(data){		
				if(data && data.state && (data.state.indexOf("ERROR") != -1)){
	
					return;	
				}else{
			 	parent.closePopup();
				 	
				}
			}
		});	
     
     
//	 	parent.closePopup();
   });
  });
  </script>
	<meta http-equiv="content-type" content="text/html;charset=UTF-8" />

 </body>
</html>